Release 10.1A: OpenEdge Data Management:
SQL Reference
INSERT
Returns a character string where
lengthnumber of characters have been deleted fromstring_exp1beginning atstart_pos, andstring_exp2has been inserted intostring_exp1, beginning atstart_pos.Syntax
Example
This example illustrates the
INSERTfunction:
The two letters ‘
o’ and ‘l’ are deleted from the name ‘Goldman’ in thelast_namecolumn, and the letters ‘xx’ are inserted into thelast_namecolumn, beginning at the fourth character, overlaying the letters ‘d’ and ‘m’.Notes
- The
string_expcan be type fixed-length or variable-lengthCHARACTER.- The
start_posandlengthcan be of data typeINTEGER,SMALLINT, orTINYINT.- The result string is of the type
string_exp1.- If any of the argument expressions evaluate to
NULL, the result isNULL.- If
start_posis negative or zero, the result string evaluates toNULL.- If
lengthis negative, the result evaluates toNULL.string_exp1andstring_exp2and the result can contain multi-byte characters. This is determined by the character set of the SQL server. Thelengthargument specifies a number of characters.Compatibility
ODBC compatible
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |